package com.itzh.strategy.pay.payport;

import com.itzh.strategy.pay.payport.impl.AliPay;
import com.itzh.strategy.pay.payport.impl.UnionPay;
import com.itzh.strategy.pay.payport.impl.WeChatPay;

public enum PayType {

    ALI_PAY(new AliPay()),
    WECHAT_PAY(new WeChatPay()),
    UNION_PAY(new UnionPay());
    private Payment payment;
    PayType(Payment payment){
        this.payment = payment;
    }

    public Payment get(){
        return this.payment;
    }

}
